POV-Ray : Newsgroups : povray.general : Mandelbrot page : Re: Mandelbrot page Server Time
8 Aug 2024 14:19:28 EDT (-0400)
  Re: Mandelbrot page  
From: Warp
Date: 24 Jan 2001 10:04:28
Message: <3a6eeefc@news.povray.org>
Tom Melly <tom### [at] tomandlucouk> wrote:
: Doh! Many thanks - fixed it now.

:             #declare TReal = ((TReal * TReal) - (TImaginary * TImaginary));
:             #declare TImaginary = (2 * T2Real * TImaginary);
:             #if(((TReal * TReal) + (TImaginary * TImaginary)) > 4)
                 ...
:             #end
:             #declare TReal = TReal + Real;
:             #declare TImaginary = TImaginary + Imaginary;

  You are here actually calculating first Z=Z^2, then looking if |Z| > 2
and then calculating Z=Z+c.
  Now, this is interesting. Does this work? In theory you should calculate
Z=Z^2+c first and then see if |Z| > 2.

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.